#include <gflags/gflags.h>
#include "../../common/dms.hpp"
#include "../../common/logger.hpp"

DEFINE_string(key_id,  "LTAI5tRgpxNGyiUWfY5KinRF", "平台访问密钥ID");
DEFINE_string(key_secret, "K9Xlfm464RpjhQCM7oAmh9Dd4KWAiZ", "平台访问密钥");

DEFINE_bool(run_mode, false, "程序的运行模式, false-调试; true-发布; ");
DEFINE_string(log_file, "", "发布模式下，用于指定日志的输出文件");
DEFINE_int32(1og_level, 0, "发布模式下，用于指定日志输出等级");

int main(int argc, char* argv[])
{
    google::ParseCommandLineFlags(&argc, &argv, true);
    init_logger(FLAGS_run_mode, FLAGS_log_file, FLAGS_1og_level);
    
    DMSClient client(FLAGS_key_id, FLAGS_key_secret);
    // client.send("13480719173", "5678");
    client.send("13166933068", "1234");

    return 0;
}